package com.css.fxfzysx.modules.ysxManagement.repository;

import com.css.fxfzysx.modules.ysxManagement.entity.CStructureCiEntity;
import com.css.fxfzysx.modules.ysxManagement.entity.CsValueEntity;
import com.css.fxfzysx.modules.ysxManagement.entity.MsCoefficientEntity;

import java.util.List;

public interface RcStructureRepository {
    void saverCStructureCi(CStructureCiEntity it);

    List<CStructureCiEntity> getCStructureCi();

    CStructureCiEntity getCstructureCiById(String ciId);

    void updateCStructureCi(CStructureCiEntity it);

    void deleteCStructureCiById(String cStructureCiId);

    void saverMsCoefficient(MsCoefficientEntity it);

    List<MsCoefficientEntity> getMsCoefficient();

    MsCoefficientEntity getMsCoefficientById(String msId);

    void updateMsCoefficient(MsCoefficientEntity it);

    void deleteMsCoefficientById(String msCoefficientId);

    void saveCsValue(CsValueEntity it);

    CsValueEntity getCsValueById(String csId);

    List<CsValueEntity> getAllCsValue(String titleName);

    void updateCsValue(CsValueEntity it);

    void deleteCsValueById(String csValueId);

    Double findValueByTitleNameAndColumn(String titleName ,String columnName,String ccsvType);

    Object findEntityByTitleNameAndColumn(String titleName ,String columnName,String ccsvType);

    MsCoefficientEntity findValueByColumn(String ccsvType,double column);

    void deleteCStructureCiByProjectId(String arrangeId);

    void deleteMsCoefficientByProjectId(String arrangeId);

    void deleteCsValueByProjectId(String arrangeId);

    CStructureCiEntity getCStructureCiByCondition(String k, String byCode,Integer code);

    double getMasonryByIdAndType(String id, String bwCategory);

    String getByGrade(String scom);
}
